﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DAL;

public partial class Admin_System_System : BLL.AdminPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            //BindData();
        }
    }
    private void BindData() {
        //var a = ctx.qSystem.First();
        //txtAddress.Text = a.aAddress;
        //txtCompanyName.Text = a.aCompanyName;
        //txtCopyright.Text = a.aCopyright;
        //txtFax.Text = a.aFax;
        //txtICP.Text = a.aICP;
        //txtKeywords.Text = a.aKeywords;
        //txtPhone.Text = a.aPhone;
        //txtWebDesc.Text = a.aWebDesc;
        //txtWebName.Text = a.aWebName;
        //txtWebTitle.Text = a.aWebTitle;
        //txtEnaddress.Text = a.aEnaddress;
    }
    protected void btnsave_Click(object sender, ImageClickEventArgs e)
    {
        //var s = ctx.qSystem.First();
        //s.aAddress = txtAddress.Text;
        //s.aCompanyName = txtCompanyName.Text;
        //s.aCopyright = txtCopyright.Text;
        //s.aFax = txtFax.Text;
        //s.aICP = txtICP.Text;
        //s.aKeywords = txtKeywords.Text;
        //s.aPhone = txtPhone.Text;
        //s.aWebDesc = txtWebDesc.Text;
        //s.aWebName = txtWebName.Text;
        //s.aWebTitle = txtWebTitle.Text;
        //s.aEnaddress = txtEnaddress.Text;
        //ctx.SubmitChanges();
    }
}